package nol_app;

/**
 * @author Sirius
 */
public class Book {
	public String isbn;
	public String title;
	public String authors;
	public int year;

	/**
	 * Book constructor
	 * 
	 * @param String
	 *            isbn the isbn of the book
	 * @param String
	 *            title the title of the book
	 * @param String
	 *            authors a comma separated list of authors
	 * @param int year the publishing year of the book
	 */
	public Book(String isbn, String title, String authors, int year) {
		this.isbn = isbn;
		this.title = title;
		this.authors = authors;
		this.year = year;
	}

	@Override
	public String toString() {
		return this.title + " (" + this.year + ") - " + this.authors;
	}
}
